package com.sinping.qh.dto.admin.record;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sinping.qh.domain.common.UploadImage;
import com.sinping.qh.domain.common.UploadImageBase64Bean;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author jiahuaiqing
 * @create 2018/5/31
 */
@Data
public class RectifyReviewDto implements Serializable {
    private static final long serialVersionUID = -5239472933315383868L;

    @Id
    @JsonProperty(value = "_id")
    private String id;

    /**
     * 隐患记录id
     */
    @Field("hidden_danger_id")
    @JsonProperty(value ="hidden_danger_id")
    private String hiddenDangerId;

    /**
     * 类型 0整改、1复查
     */
    @Field("re_type")
    @JsonProperty(value = "re_type")
    private String reType;

    /**
     * 隐患状态 -未整改；1-不到位；2-待复查；3-已整改
     */
    @Field("hidden_danger_status")
    @JsonProperty(value = "hidden_danger_status")
    private String hiddenDangerStatus;

    /**
     * 图片url
     */
    @Field("uploadImageList")
    @JsonProperty(value = "uploadImageList")
    private List<UploadImage> uploadImageList;
    /**
     * 描述
     */
    @Field("desc")
    @JsonProperty(value = "desc")
    private String desc;

    /**
     * 提交人id
     */
    @Field("submit_user_id")
    @JsonProperty(value = "submit_user_id")
    private String submitUserId;
    /**
     * 提交人姓名
     */
    @Field("submit_user_name")
    @JsonProperty(value = "submit_user_name")
    private String submitUserName;
    /**
     * 提交时间
     */
    @Field("submit_time")
    @JsonProperty(value = "submit_time")
    private Date submitTime;

    /**
     * 创建时间
     */
    @Field("gmt_created")
    @JsonProperty(value = "gmt_created")
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @Field("gmt_modified")
    @JsonProperty(value = "gmt_modified")
    private Date gmtModified;

    /**
     * 用于生成整改报告，整改复查图片的显示
     */
    @JsonProperty(value = "uploadImageBase64")
    private List<UploadImageBase64Bean> uploadImageBase64;



}
